package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ExitApplicationsMapper;
import com.ruoyi.system.domain.ExitApplications;
import com.ruoyi.system.service.IExitApplicationsService;

/**
 * 出境申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-25
 */
@Service
public class ExitApplicationsServiceImpl implements IExitApplicationsService 
{
    @Autowired
    private ExitApplicationsMapper exitApplicationsMapper;

    /**
     * 查询出境申请
     * 
     * @param id 出境申请主键
     * @return 出境申请
     */
    @Override
    public ExitApplications selectExitApplicationsById(Integer id)
    {
        return exitApplicationsMapper.selectExitApplicationsById(id);
    }

    /**
     * 查询出境申请列表
     * 
     * @param exitApplications 出境申请
     * @return 出境申请
     */
    @Override
    public List<ExitApplications> selectExitApplicationsList(ExitApplications exitApplications)
    {
        return exitApplicationsMapper.selectExitApplicationsList(exitApplications);
    }

    /**
     * 新增出境申请
     * 
     * @param exitApplications 出境申请
     * @return 结果
     */
    @Override
    public int insertExitApplications(ExitApplications exitApplications)
    {
        return exitApplicationsMapper.insertExitApplications(exitApplications);
    }

    /**
     * 修改出境申请
     * 
     * @param exitApplications 出境申请
     * @return 结果
     */
    @Override
    public int updateExitApplications(ExitApplications exitApplications)
    {
        return exitApplicationsMapper.updateExitApplications(exitApplications);
    }

    /**
     * 批量删除出境申请
     * 
     * @param ids 需要删除的出境申请主键
     * @return 结果
     */
    @Override
    public int deleteExitApplicationsByIds(Integer[] ids)
    {
        return exitApplicationsMapper.deleteExitApplicationsByIds(ids);
    }

    /**
     * 删除出境申请信息
     * 
     * @param id 出境申请主键
     * @return 结果
     */
    @Override
    public int deleteExitApplicationsById(Integer id)
    {
        return exitApplicationsMapper.deleteExitApplicationsById(id);
    }
}
